class UrlMappings {

	static mappings = {
		"/$controller/$action?/$id?"{
                    constraints {
                            // apply constraints here
                    }
                }
//                "/$controller/$id?"{
//                        action = [GET:"show", POST:"save", PUT:"update", DELETE:"remove"]
//			constraints {
//				// apply constraints here
//			}
//		}

                // display GSP page
                "/accountStatusActivation"(controller:"adminAccount",action:"accountStatusActivation") // delete/block user
                "/accountStatusActivationDetail"(controller:"adminAccount",action:"accountStatusActivationDetail") // delete/block user
                "/accountClosure"(controller:"adminAccount",action:"closeAccount") // own account?
                "/productComment"(controller:"contentManagement",action:"productComment")
                "/productRating"(controller:"contentManagement",action:"productRating")
                "/productTypeCreate"(view:"catalogueManagement/productTypeCreate")
                "/productTypeRetrieve"(controller:"catalogueManagement",action:"productTypeRetrieve")
                "/productTypeUpdate"(controller:"catalogueManagement",action:"productTypeUpdate")
                "/productTypeDelete"(controller:"catalogueManagement",action:"productTypeDelete")
                "/wineTypeCreate"(view:"catalogueManagement/wineTypeCreate")
                "/wineTypeRetrieve"(controller:"catalogueManagement",action:"wineTypeRetrieve")
                "/wineTypeUpdate"(controller:"catalogueManagement",action:"wineTypeUpdate")
                "/wineTypeDelete"(controller:"catalogueManagement",action:"wineTypeDelete")
                "/wineVarietalCreate"(controller:"catalogueManagement",action:"wineVarietalCreate")
                "/wineVarietalRetrieve"(controller:"catalogueManagement",action:"wineVarietalRetrieve")
                "/wineVarietalUpdate"(controller:"catalogueManagement",action:"wineVarietalUpdate")
                "/wineVarietalDelete"(controller:"catalogueManagement",action:"wineVarietalDelete")
                "/wineRegionCreate"(controller:"catalogueManagement",action:"wineRegionCreate")
                "/wineRegionRetrieve"(controller:"catalogueManagement",action:"wineRegionRetrieve")
                "/wineRegionUpdate"(controller:"catalogueManagement",action:"wineRegionUpdate")
                "/wineRegionDelete"(controller:"catalogueManagement",action:"wineRegionDelete")
                "/wineProductCreate"(controller:"catalogueManagement",action:"wineProductCreate")
                "/wineProductRetrieve"(controller:"catalogueManagement",action:"wineProductRetrieve")
                "/wineProductUpdate"(controller:"catalogueManagement",action:"wineProductUpdate")
                "/wineProductDelete"(controller:"catalogueManagement",action:"wineProductDelete")
                "/memberInfoManagement"(controller:"customerManagement",action:"memberInfoManagement")
                "/memberInfoEditing"(controller:"customerManagement",action:"memberInfoEditing")
                "/memberRegistration"(controller:"customerManagement",action:"memberRegistration")
                "/memberRegistrationError"(view:"customerManagement/memberRegistrationError")
                "/product/wine"(controller:"contentManagement",action:"retrieveWineProducts")
                "/product/gift"(controller:"contentManagement",action:"retrieveProductGift")
                "/product/hamper"(controller:"contentManagement",action:"retrieveProductHamper")
                "/retrieveProductDetail"(controller:"contentManagement",action:"retrieveProductDetail")
                "/shoppingCartRetrieve"(controller:"cartManagement",action:"shoppingCartRetrieve")
                "/searchProducts"(controller:"contentManagement",action:"searchProducts")
                "/memberLogin"(view:"customerManagement/memberLogin")
                "/thankyou"(view:"customerManagement/thankyou")
                "/searchProducts"(controller:"contentManagement",action:"addCart")
		"/"(view:"/index")
                "/404"(view:"error/404")
		"500"(view:'/error')
        
        "/payment"(controller:"payment",action:"payment")
        "/success"(controller:"payment",action:"success")
                "/thank"(controller:"payment",action:"thank")
	}
}
